package com.qumap.item.request.filter;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.qumap.item.content.ObjectOnMapShort;
import com.qumap.item.request.ItemFilterAndLoadProcessor;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 10.06.11
 * Time: 22:26
 * To change this template use File | Settings | File Templates.
 */
public class FilteredObjectsCallback implements AsyncCallback<List<ObjectOnMapShort>> {

    private ItemFilterAndLoadProcessor display;

    public FilteredObjectsCallback(ItemFilterAndLoadProcessor display) {
        this.display = display;
    }

    @Override
    public void onFailure(Throwable throwable) {
        display.onFailure(throwable);
    }

    @Override
    public void onSuccess(List<ObjectOnMapShort> objectOnMapShorts) {
        display.onContentLoad(objectOnMapShorts);
    }
}
